package de.stefanocke.roo.wicket.details

import de.stefanocke.roo.wicket.base.html.HtmlBuilder
import org.w3c.dom.Document

class DetailsHtmlBuilder extends HtmlBuilder<DetailsMetadata>{	
	
	override DetailsMetadata getMetadata(){
		super.metadata
	}
	override Document build(){
		val properties = metadata.propertiesForScaffolding  		
		getDocument.appendChild(	
			html.children(
				body.children(
					extend.children(
						properties.map(p | span(p.getPropertyName.symbolName))
					)		
				)
			)
		)
		document	
	}
}